﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TestSplashScreen
{
    public partial class fMain : Form
    {
        public fMain()
        {
            InitializeComponent();
            this.Load += new EventHandler(fMain_Load);
        }

        void fMain_Load(object sender, EventArgs e)
        {
            showSplashScreen();
        }

        private void showSplashScreen()
        {
            using (fSplashScreen fsplash = new fSplashScreen())
            {
                if (fsplash.ShowDialog() == System.Windows.Forms.DialogResult.Cancel) this.Close();
            }
        }

        private void fMain_Load_1(object sender, EventArgs e)
        {

        }
    }
}
